# -*- mode: snippet -*-
# --
BufferedReader br = new BufferedReader(
    new InputStreamReader(new FileInputStream(<QUERY "filename: ">)));
String line;
while ((line = br.readLine()) != null) {
    <cursor>
}